    //This code will be placed right after your gadget's Javascript
    
    //Your Javascript can call this, which should log messages in
    //Safari, Opera, Chrome, and Firefox with Firebug. Don't know how to support IE, sorry.
    function logThis(obj) {
      if (window.console && console.log) {
        console.log(obj);
      }
    }
    
    //This is the first initializer. It registers callback functions
    //that will be called when Wave is ready to run.
    //NOTE: Your gadget.js is required to receive all callbacks via a
    //method named "renderInfo()".
    function main() {
      if (wave && wave.isInWaveContainer()) {
        wave.setStateCallback(renderInfo);
        wave.setParticipantCallback(renderInfo);
      }
    }
    gadgets.util.registerOnLoadHandler(main);

